package com.hgt.cloudAlibaba.service.impl;

import com.hgt.cloudAlibaba.service.PaymentService;
import com.hgt.springcloud.common.CommonResult;
import com.hgt.springcloud.entity.Payment;
import org.springframework.stereotype.Component;

/**
 * @author HuangGaoTao 929507053@qq.com
 * @Created: 2021/7/19 15:08
 */
@Component
public class PaymentFallbackService implements PaymentService {

    @Override
    public CommonResult<Payment> paymentSQL(Long id)
    {
        return new CommonResult<>(44444,"服务降级返回,---PaymentFallbackService",new Payment(id,"errorSerial"));
    }
}
